package com.gs.protobuf;


import com.gs.protobuf.swing.MainFrame;

import javax.swing.*;

/**
 * Hello world!
 *
 */
public class App {

    private static final String fontName = "微软雅黑";


    public static void main(String[] args) {
        //使用事件调度线程确保所有的Swing组件都在AWT线程中安全地构建
        SwingUtilities.invokeLater(() -> {
            try {
                UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
            } catch (Exception e) {
                e.printStackTrace();
            }
            new MainFrame().createAndShowGUI();
        });
    }
}
